<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational TestFactory 评估测试覆盖率</title>
<meta content="ToolMentor" name="uma.type">
<meta content="eval_test_coverage" name="uma.name">
<meta content="使用 Rational TestFactory 评估测试覆盖率" name="uma.presentationName">
<meta content="Tool:rup_test_factory:Rational TestFactory" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational TestFactory" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_mp7z0DIDEdqwaNnSEheSAg", "_9U7IkDIEEdqwaNnSEheSAg", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{D4C656B2-68B7-4C88-B999-FA80AA417C6C}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{D4C656B2-68B7-4C88-B999-FA80AA417C6C}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{FBA5098E-2CA8-483D-814D-DE3E876426B1}", "{D4C656B2-68B7-4C88-B999-FA80AA417C6C}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{D4C656B2-68B7-4C88-B999-FA80AA417C6C}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational TestFactory 评估测试覆盖率</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述如何使用 Rational TestFactory 为 TestFactory 中自动生成的脚本评估基于 UI 的测试覆盖率和基于代码的测试覆盖率。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_test_factory_3EDA2115.html" guid="{FBA5098E-2CA8-483D-814D-DE3E876426B1}">Rational TestFactory</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/analyze_runtime_behavior_B2DD7652.html" guid="{5131A5BB-5B95-499E-A68B-788A2F0957C3}">分析运行时行为</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/execute_test_suite_492795DE.html" guid="{6B420194-5EB7-4A12-A061-09FAA5DC18DE}">执行测试套件</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/determine_test_results_630C9EC9.html" guid="{74E51E86-ECAB-4A61-9A88-FD358EE6F2B1}">确定测试结果</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a> 
<h3>
    概述
</h3>
<p>
    在 Rational TestFactory 中自动生成测试脚本之后，可查看各测试脚本的测试覆盖率信息。有关使用 Pilot 生成测试脚本的信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/generate_test_scripts_71EF254E.html" guid="{19F8AE86-E40A-42F5-8B81-673C306F5C35}">工具向导：自动生成测试脚本</a>。
</p>
<p>
    在运行 98/2000/NT 4.0 时此工具向导可用。
</p>
<p>
    要使用 Rational TestFactory 评估测试覆盖率：
</p>
<ul>
    <li>
        <a href="#Review coverage">查看测试覆盖率信息</a>。
    </li>
</ul>
<h3>
    <a id="Review coverage" name="Review coverage">查看测试覆盖率信息</a>
</h3>
<p>
    当测试脚本是在 Rational TestFactory 主窗口的左窗格中选中的对象时，右窗格中的<b>覆盖率</b>选项卡将包含该脚本的测试覆盖率信息。
</p>
<p>
    Rational TestFactory 将基于 UI 的测试覆盖率值计算为测试脚本执行的应用程序（或 applet）中的唯一控件数相对于 Pilot 可访问的控件数的百分比。
</p>
<p>
    Rational TestFactory 将基于代码的测试覆盖率值计算为测试脚本执行的源代码相对于被测试的应用程序中的<i>所有</i>源代码的百分比。如果有权访问 AUT 的源文件，则可使用 TestFactory
    中的覆盖率浏览器查看源文件中的代码，并检查测试脚本覆盖了哪些代码行。
</p>
<p>
    <img height="16" alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" width="16" />&nbsp;&nbsp; 请参考 Rational TestFactory
    联机帮助中的以下主题：
</p>
<ul>
    <li>
        <i>Scripts: What they are and how they work</i>
    </li>
    <li>
        <i>Review coverage results for a script</i>
    </li>
    <li>
        <i>Code coverage for scripts in a Java application or applet</i>
    </li>
</ul><br />
<br /></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
